package cn.javazd.auth.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.javazd.auth.entity.SysUser;
import cn.javazd.auth.mapper.SysUserMapper;
import cn.javazd.auth.service.SysUserService;
import lombok.AllArgsConstructor;

@AllArgsConstructor
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

	@Override
	public SysUser findUserByUsername(String username) {
		return baseMapper.selectOne(new QueryWrapper<SysUser>().eq("username", username));
	}

}
